var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

router.get('/login',function(req,res){
  let {username,pwd} = req.query;
  console.log("登录：",username,pwd);
  res.send("login");
});
router.post('/reg',function(req,res){
  let {username,pwd} = req.body;
  console.log("注册：",username,pwd);
  res.send("reg");
});

module.exports = router;
